package com.my.blog.myblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@TableName(value = "t_blackip")
public class Blackip {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "vid")
    private Integer vid;

    @TableField(value = "ip")
    private String ip;

    @TableField(value = "city")
    private String city;

    @TableField(value = "browserType")
    private String browserType;

    @TableField(value = "platformType")
    private String platformType;

    @TableField(value = "time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime time;

    public static final String COL_ID = "id";

    public static final String COL_VID = "vid";

    public static final String COL_IP = "ip";

    public static final String COL_CITY = "city";

    public static final String COL_BROWSERTYPE = "browserType";

    public static final String COL_PLATFORMTYPE = "platformType";

    public static final String COL_TIME = "time";


}